<template>
  <div>
      <div>fatherAge:{{ fatherAge }}</div>
      <p>下面是儿子组件:{{val}}</p>
      <sons :qq="sonAge" @childAge="receiveData"></sons>
  </div>
</template>
<script>
import son from './son'
export default {
  data() {
    return {
      fatherAge: 39,
      sonAge:13,
      times:2020,
      val:'p val',
    };
  },
  components:{
      sons:son,
  },
  methods: {
      receiveData(val){
          this.val = val
      }
  },
};
</script>